﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Data.Context
{
    public class DataFactory
    {
        private static string connectionString;

        static DataFactory()
        {
            connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["DuoiBatEntities"].ToString();
        }
        public static DuoiBatEntities CreateContext()
        {
            return new DuoiBatEntities(connectionString);
        }
    }
}
